package com.sdwl.imchat.service.tusertext.impl;

import com.sdwl.imchat.dao.TUserTextMapper;
import com.sdwl.imchat.entity.TUserText;
import com.sdwl.imchat.service.tusertext.TUserTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TUserTextServiceImpl implements TUserTextService {

    @Autowired
    private TUserTextMapper tUserTextMapper;

    @Override
    public List<TUserText> getAllUserTexts() {
        return tUserTextMapper.selectAll();
    }

    @Override
    public TUserText getUserTextByUserId(Long userId) {
//        return tUserTextMapper.selectByPrimaryKey(userId.intValue());
        return null;
    }
}
